package com.zzl.finance.data.constant;

/**
 * 操作按钮 枚举值
 *
 * @author : gull
 * @date : 2022/9/22 20:37
 */
public enum OperateButtonEnum {

    /**
     * 详情
     */
    DETAILS(20, "详情"),

    EDIT(21, "编辑"),

    FROZEN(22, "冻结"),
    ENABLE(23, "启用"),
    ;
    private final Integer code;
    private final String value;


    OperateButtonEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(Integer code) {
        for (OperateButtonEnum statusEnum : OperateButtonEnum.values()) {
            if (statusEnum.code.equals(code)) {
                return statusEnum.value;
            }
        }
        return "";
    }


    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

}
